#ifndef ENEMIESMANAGER_H
#define ENEMIESMANAGER_H

#include <vector>
#include "Bullet.h"
#include "CSprite.h"
#include "Kinematic.g.h"
#include "TMXLoader.h"

class EnemiesManager
{
    public:
        EnemiesManager(TMXLoader map);
        virtual ~EnemiesManager();
        //void addBullet(irrklang::vec3df& vel, irrklang::vec3df& pos);
        void update();
        void draw();
        std::vector<Kinematic>* getEnemies();
        bool hitTest(irrklang::vec3df& pos, float width, float height);
        void setPlayerPos(irrklang::vec3df pos);
    protected:
    private:
        std::vector<Kinematic> enemies;
        void createEnemy(float x, float y);
        float getAngle(irrklang::vec3df posEnemy);

        CSprite* image;
        TMXLoader map;
        irrklang::vec3df playerPos;
};

#endif // ENEMIESMANAGER_H
